package com.x.ant.model;

import java.util.List;

import com.x.framework.annotation.MappingColumn;
import com.x.framework.annotation.MappingTable;
import com.x.framework.model.BaseObject;

@MappingTable(tableName = "BASE_TEMPLATE_COLUMN")
public class TemplateColumn extends BaseObject {

	@MappingColumn(columnName = "TEMPLATE_ID", columnPk = true)
	private Integer templateId;

	@MappingTable(tableName = "ESTATE_TEMPLATE")
	private Template template;

	@MappingColumn(columnName = "COLUMN_ID", columnPk = true)
	private Integer columnId;

	@MappingColumn(columnName = "COLUMN_NAME")
	private String columnName;

	@MappingColumn(columnName = "COLUMN_TYPE")
	private String columnType;

	@MappingColumn(columnName = "COLUMN_NOT_NULL")
	private Integer columnNotNull;

	private List<TemplateColumnEnum> templateColumnEnumList;

	public TemplateColumn() {

	}

	public Integer getColumnId() {
		return columnId;
	}

	public String getColumnName() {
		return columnName;
	}

	public String getColumnType() {
		return columnType;
	}

	public Template getTemplate() {
		return template;
	}

	public Integer getTemplateId() {
		return templateId;
	}

	public Integer getColumnNotNull() {
		return columnNotNull;
	}

	public List<TemplateColumnEnum> getTemplateColumnEnumList() {
		return templateColumnEnumList;
	}

	public void setColumnId(Integer columnId) {
		this.columnId = columnId;
	}

	public void setColumnName(String columnName) {
		this.columnName = columnName;
	}

	public void setColumnType(String columnType) {
		this.columnType = columnType;
	}

	public void setTemplate(Template template) {
		this.template = template;
	}

	public void setTemplateId(Integer templateId) {
		this.templateId = templateId;
	}

	public void setColumnNotNull(Integer columnNotNull) {
		this.columnNotNull = columnNotNull;
	}

	public void setTemplateColumnEnumList(List templateColumnEnumList) {
		this.templateColumnEnumList = templateColumnEnumList;
	}
}
